<template>
    <el-aside width="200px" style="background-color: #545c64;">
        <el-menu active-text-color="#ffd04b" background-color="#545c64" class="el-menu-vertical-demo"
            :default-active="router.currentRoute.value.path" text-color="#fff" router>
            <el-menu-item index="/addon/{module}/dashboard">
                <el-icon>
                    <icon-menu />
                </el-icon>
                <span>面板</span>
            </el-menu-item>
        </el-menu>
    </el-aside>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'
const router = useRouter()

if (router.currentRoute.value.path == '/addon') {
    router.replace({ path: '/addon/{module}/dashboard' })
}
</script>